package com.service.impl;

import com.alipay.api.AlipayApiException;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.AlipayDao;
import com.dao.OrdersDao;
import com.entity.AlipayEntity;
import com.entity.OrdersEntity;
import com.model.AlipayBean;
import com.service.PayService;
import com.utils.Alipay;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PayServiceImpl extends ServiceImpl<AlipayDao, AlipayEntity> implements PayService {

    @Resource
    private Alipay alipay;


    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }
}

